<!--conf
<sample>
              <product version="1.4" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Row hovering</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>
<style>
    .grid_hover {
        background-color:#7FFFD4;
        font-size:20px;
    }
</style>
<body>
	
	<h1>Row hovering</h1>
	<p>enableRowsHover allows you to enable/disable hovering row under mouse.</p>
	
	<table width="600px">
		<tr>
			<td width="50%" valign="top">
				<div id="gridbox" style="width:100%;height:270px;background-color:white;"></div>
			</td>

		</tr>
		<tr>
			<td>
				<a href="#" onClick="mygrid.enableRowsHover(true,'grid_hover')">enable hovering</a><br>
				<a href="#" onClick="mygrid.enableRowsHover(false)">disable hovering</a><br>
                <div id="a_1"></div>
			</td>
		</tr>
	</table>
<br>


<script>
    function doOnRowSelect(id){
        document.getElementById("a_1").innerHTML="Selected row: "+id;
    }
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
	mygrid.setInitWidths("50,150,120,80,80,80,80,200")
	mygrid.setColAlign("right,left,left,right,center,left,center,center")
	mygrid.setColTypes("dyn,ed,ed,price,ch,co,ra,ro");
      mygrid.attachEvent("onRowSelect",doOnRowSelect);
    mygrid.getCombo(5).put(2,2);
	mygrid.setColSorting("int,str,str,int,str,str,str,date")
    mygrid.enableMultiselect(true);
	mygrid.init();
	mygrid.setSkin("dhx_skyblue")
	mygrid.loadXML("../common/grid.xml");

</script>

</body>
</html>
